package com.companion.companion.domain;


import java.util.Date;

/**
 * 护工信息对象 caregiver
 * 
 * @author zly
 * @date 2025-05-06
 */
public class Caregiver
{

    /** 护工ID */
    private Long caregiverId;

    /** 护工姓名 */
    private String name;

    /** 性别（0男，1女） */
    private Long gender;

    /** 年龄 */
    private Long age;

    /** 联系电话 */
    private String phone;

    /** 身份证号码 */
    private String idNumber;

    /** 工作年限 */
    private Long workYears;

    /** 技能描述 */
    private String skills;

    /** 是否可接单（0=是，1=否） */
    private Long availability;

    private Date createTime;

    /** 密码 */
    private String password;

    /** 頭像 */
    private String avatar;


    public Caregiver() {
    }

    public Caregiver(Long caregiverId, String name, Long gender, Long age, String phone, String idNumber, Long workYears, String skills, Long availability, Date createTime, String password) {
        this.caregiverId = caregiverId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.phone = phone;
        this.idNumber = idNumber;
        this.workYears = workYears;
        this.skills = skills;
        this.availability = availability;
        this.createTime = createTime;
        this.password = password;
    }

    public Caregiver(Long caregiverId, String name, Long gender, Long age, String phone, String idNumber, Long workYears, String skills, Long availability, Date createTime, String password, String avatar) {
        this.caregiverId = caregiverId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.phone = phone;
        this.idNumber = idNumber;
        this.workYears = workYears;
        this.skills = skills;
        this.availability = availability;
        this.createTime = createTime;
        this.password = password;
        this.avatar = avatar;
    }

    /**
     * 获取
     * @return caregiverId
     */
    public Long getCaregiverId() {
        return caregiverId;
    }

    /**
     * 设置
     * @param caregiverId
     */
    public void setCaregiverId(Long caregiverId) {
        this.caregiverId = caregiverId;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return gender
     */
    public Long getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(Long gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public Long getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Long age) {
        this.age = age;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return idNumber
     */
    public String getIdNumber() {
        return idNumber;
    }

    /**
     * 设置
     * @param idNumber
     */
    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    /**
     * 获取
     * @return workYears
     */
    public Long getWorkYears() {
        return workYears;
    }

    /**
     * 设置
     * @param workYears
     */
    public void setWorkYears(Long workYears) {
        this.workYears = workYears;
    }

    /**
     * 获取
     * @return skills
     */
    public String getSkills() {
        return skills;
    }

    /**
     * 设置
     * @param skills
     */
    public void setSkills(String skills) {
        this.skills = skills;
    }

    /**
     * 获取
     * @return availability
     */
    public Long getAvailability() {
        return availability;
    }

    /**
     * 设置
     * @param availability
     */
    public void setAvailability(Long availability) {
        this.availability = availability;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    public String toString() {
        return "Caregiver{caregiverId = " + caregiverId + ", name = " + name + ", gender = " + gender + ", age = " + age + ", phone = " + phone + ", idNumber = " + idNumber + ", workYears = " + workYears + ", skills = " + skills + ", availability = " + availability + ", createTime = " + createTime + ", password = " + password + "}";
    }

    /**
     * 获取
     * @return avatar
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 设置
     * @param avatar
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
